package fr.auzaiphe.commun.reseau;
import java.io.Serializable;
import java.net.InetAddress;

import fr.auzaiphe.commun.Model;
import fr.auzaiphe.commun.View;


public abstract class Packet implements Serializable
{
	private static final long serialVersionUID = 1L;
	protected Model model;
	protected View view;
	protected InetAddress source;
	protected InetAddress destination = null;

	public abstract void action();

	public InetAddress getSource()
	{
		return this.source;
	}

	public void setSource(InetAddress source)
	{
		this.source = source;
	}

	public InetAddress getDestination()
	{
		return this.destination;
	}

	public void setDestination(InetAddress destination)
	{
		this.destination = destination;
	}

	public void setModel(Model model)
	{
		this.model = model;
	}

	public void setView(View view)
	{
		this.view = view;
	}
}